widget: Ignore natives for picking
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Jun 2019 03:16:31 +0000 (03:16 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Jun 2019 17:38:54 +0000 (17:38 +0000)
The natives transforms are not set up properly
to make this work, so ignore them here, for now.
This my need to be revisited later.

gtk/gtkwidget.c

index 9bc74e9d6846546193d648ebdcdd17a2d3150f8c..07080d6b9ea3ec3ba58bc17208d219c63e3349b6 100644 (file)
@@ -10936,6 +10936,9 @@ gtk_widget_pick (GtkWidget    *widget,
       GtkWidget *picked;
       graphene_point3d_t p0, p1, res;
 
+      if (GTK_IS_NATIVE (child))
+        continue;
+
       if (child_priv->transform)
         {
           transform = gsk_transform_invert (gsk_transform_ref (child_priv->transform));